package com.jungle.bfi.entity;

import com.jungle.base.entity.BasePo;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

/**
 * [voucher]会计凭证
 */
@Setter
@Getter
@Entity
@Table(name = "t_voucher")
public class VoucherPo extends BasePo<String> {
    @Id
    @Column(columnDefinition = "varchar(32) comment '凭证主键'")
    private String id;
    /**
     * 凭证类型(凭证字)
     */
    @Column(columnDefinition = "varchar(32) comment '凭证字'")
    private String type;
    /**
     * 凭证号
     */
    @Column(columnDefinition = "varchar(32) comment '凭证号'")
    private String number;
    /**
     * 凭证日期
     */
    @Column(columnDefinition = "datetime comment '凭证日期'")
    private Date date;
    /**
     * 会计年份
     */
    @Column(columnDefinition = "int comment '会计年份'")
    private int year;

    /**
     * 会计月份
     */
    @Column(columnDefinition = "int comment '会计月份'")
    private int month;
    /**
     * 总金额
     */
    @Column(columnDefinition = "decimal(16,2) comment '总金额'")
    private BigDecimal total;
}
